#include <bits/stdc++.h>

using namespace std;
void mysleep(int s)
{
    clock_t st;
    st=clock();
    while(clock()-st<s*CLOCKS_PER_SEC);
}
int main()
{
   int c=5;
   float num=0.0;
   list<int>mylist;
   cout<<"input 5 numbers\n";
   while(c--)
   {
       cin>>num;
       mylist.push_back(num);
   }
   list<int>::iterator iter;
   for(iter=mylist.begin();iter!=mylist.end();++iter)
   {
       cout<<*iter<<"\n";
       mysleep(*iter);
   }
   list<int>().swap(mylist);
   return 0;
}
